<%@ page pageEncoding="utf-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jstl/core_rt"%>
<div id="tree-pannel" style="float:left;width:270px; ">
<ul id="resTree" class="ztree"></ul>
</div>
	<div id="tabstool">
	    <div id="toolbar">
	      <button id="save" class = "sexybutton sexysimple sexyteal" ><span class = "save" >保存</span></button > 
	      <button id="clear" class = "sexybutton sexysimple sexyteal" ><span class = "edit">清除</span></button > 
	      <button id="remove" class = "sexybutton sexysimple sexyteal" ><span class = "decline" >删除</span></button > 
	    </div>
	    <hr/>
	    <form>
		 <table border="0" cellpadding="0" cellspacing="1">
		    <tr height="35">
		        <th > 名称 </th>
		        <td>
		        <input id="id" name="bean.id" type="hidden"/>
		        <input id="parentId" name="bean.parentId" type="hidden"/>
		        <input type="text" id="description" name="bean.description" size="30" /></td>
	        </tr>
	        <tr>
	         <th>
	          所属应用域
	         </th>
	        <td>
	           <select name="bean.webapp.id" id="webappid">
	           
	             <optgroup label="有效服务">
	              <c:forEach items="${webapps}" var="wbean">
	               <option value="${wbean.id}" alt="${wbean.name}">${wbean.name}</option>
	             </c:forEach>
	             </optgroup>
	           </select>
	        </td>
	        </tr>
		      <tr height="35">
		        <th> 链接 </th>
		        <td><input  type="text" name="bean.identifier" id="identifier"
							size="50" /></td>
	        </tr>
	        <%
	        	org.jackysoft.entity.TreeNodeCatalog[] ttypes = org.jackysoft.entity.TreeNodeCatalog.values();
	        	        		pageContext.setAttribute("ptypes", ttypes);
	        %>
	        <tr>
	          <th>链接类型</th>
	          <td>
	             
	             <select name="bean.catalog" id="cataId">
	                <optgroup label="可选链接类型">
	                  <c:forEach items="${ptypes}" var="item">
	                    <option value="${item.label}">${item.label}</option>  
	                  </c:forEach>	                 
	                </optgroup>
	             </select> 
	          
	          
	          </td>
	        </tr>
		      <tr height="35">
		        <th > 类型 </th>
		        <td  align="left" id="typeui">	
		          <div id="ftype" >
		          <input type='radio' name='bean.type' id='beantypetrue' value="document"   />
		          <label  for="beantypetrue">文件</label>	
		          <input type='radio' name='bean.type' id='beantypefalse' value="folder"  /> 
		          <label  for="beantypefalse">目录</label>       
		           </div>
		        </td>
	        </tr>
		      <tr height="35">
		        <th >可见性</th>
		        <td align="left">
		        <div id="fvisa">
                  <input  type="radio" name="bean.visiable" id="beantrue" value="true" />
                       <label   for="beantrue">可见</label> 
                  <input type="radio"  name="bean.visiable" id="beanfalse" value="false" />
                    <label for="beanfalse">不可见</label>
                </div>
                </td>
	        </tr>       
</table> 
</form> 
	</div>	

<script type="text/javascript" src="scripts/apps/admin/treenode/util.js"></script>
<script type="text/javascript" src="scripts/apps/admin/treenode/start.js"></script>